$('.public-list-body').marquee({
    //方向
    direction: 'up',
    pixels: 2,
    duplicated: true,
    startVisible: true,
    pauseOnHover: true,
    gap: 0,
    speed: 120
});

function initPublicWordCloud(data){
    debugger
    var myChart = echarts.init(document.getElementById('public-wordcloud'));
    var option={
        series:[
            {
                type: 'wordCloud',
                sizeRange: [14, 50],
                rotationRange: [0, 0],
                rotationStep: 0,
                gridSize: 25,
                drawOutOfBound: false,
                layoutAnimation: true,
                //颜色随机
                textStyle: {
                    normal: {
                        color: function () {
                            let colors = ['#efc83d','#23D38B','#785FF3','#3C78EE','#2492EB']
                            return colors[parseInt(Math.random() * 5)];
                        }
                    },
                },
                data:data
            }
        ]
    }
    myChart.setOption(option);
}
